package com.lsq.baseadmin.common.exception;

import lombok.Getter;
import org.springframework.http.HttpStatus;

/**
 * @author pc12138 2020/10/23 10:44
 * @since 自定义异常
 */
@Getter
public class MyException extends RuntimeException{

    private Integer status;

    public MyException(String msg){
        super(msg);
    }

    public MyException(HttpStatus status, String msg){
        super(msg);
        this.status = status.value();
    }
}
